<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>{$title}</title>
<JS href="../Public/js/jq.js" />
<script>
function check(){
	if($('#num').val() ==''){alert('数量不能为空');return false;}
}
$().ready(function(){
	$('#addid').attr('value','{.addid}');
	$('#speid').attr('value','{.speid}');
	$('#addid,#speid').change(function(){
		$('#form_action').submit();
	})
	
})
</script>
</head>
<body>
<fieldset><lenged>筛选条件</lenged>
<form action="__ACTION__" method="get" id="form_action">
<select name="addid" id="addid"><option value=''>请选择地区</option>
<volist name="address" id="vo">
<option value="{$key}">{$vo}</option>
</volist></select>
<input type="hidden" value="{.pid}" name="pid" />

<select name="speid" id="speid"><option value="">请选择专业</option>
<volist name="speciality" id="vo">
<option value="{$vo.specialityid}">{$vo.spe_name}</option>
</volist>
</select>
</form>
</fieldset>
<table border="1">
<tr><td>地址</td><td>专业</td><td>学历层次</td><td>计划类型</td><td>招生人数</td><td>学制</td><td>科类</td><td>备注</td><td>操作</td></tr>
<volist name="content" id="vo">
<tr><td>{$address[$vo['address']]}</td><td>{$speciality[$vo['specialityid']]['spe_name']}</td>
<td>{$stu_type[$vo['educationid']]}</td>
<td>{$plan_type[$vo['plantype']]}</td>
<td>{$vo.num}</td>
<td>{$vo.lengthofschooling}年制</td>
<td>{$subject[$vo['subjecttype']]}</td>
<td>{$vo.remark}</td>
<td><a href="__URL__/delplanitem/id/{$vo.id}">删</a></td>
</tr>
</volist>
</table>
{$page}
<!-- 添加新数据 -->
<fieldset>
<legend>添加新数据</legend>
<form action="__URL__/addplan/" method="post" onsubmit="return check()">
<input type="hidden" name="pid" value="{.pid}" />
<p>地区：<select name="address"><volist name="address" id="vo">
<option value="{$key}">{$vo}</option>
</volist></select>
专业：<select name="specialityid"><volist name="speciality" id="vo">
<option value="{$vo.specialityid}">{$vo.spe_name}</option>
</volist>
</select>
教育层次:<select name="educationid">
<volist name="stu_type" id="vo">
<option value="{$key}">{$vo}</option>
</volist>
</select>
计划类型：<select name="plantype">
<volist name="plan_type" id="vo">
<option value="{$key}">{$vo}</option>
</volist>
</select>
招生数量:<input type="text" name="num" id="num" length="2" />
学制:<select name="lengthofschooling"><option value="3">3年制</option>
<option value="4">4年制</option></select>
科类:<select name="subjecttype">
<volist name="subject" id="vo">
<option value="{$key}">{$vo}</option>
</volist>
</select>
<input type="submit" value="添加" /></p>
</form>
</fieldset>
</body>
</html>